# -*- coding: utf-8 -*-
# @Time    : 2021/3/18 0018 23:14
# @Author  : 蒋才果
# @Email   : 1476235300@qq.com
# @File    : j作业.py
# @Software: PyCharm

# 1
# print("20<x<30"or"x<-100")
#
# #2
# n = int(input("输入任意整数："))
# y = int(2**n-1)
# print(y)


# 3
# a = int(10)
# b = int(20)
#
# if {a>0 and b>0 and a!=b}:
#
#  print(a%b+a/b*b==a)

# 4
# str1 = '2135asdasdsvdfgdfabc'
# print(str1.find("abc"))

# 5
# a = int(127)
# print(a>>2)


# 6
# print(3 or print("5")and not print('abc'))

# 7
# a = int(5)
# b = int(7)
# print(1.0+a/b)

# 8
# x = int (15)
# y = int (19)
# z = int (18)
# print(x<z or y<z)

# 9
import random
a = "101010101010101010101010"
b = "".join(random.sample(a,12))
print("亮灯情况：",b)
c = random.randint(1,12)
print("你打到了第：",c,"盏灯")
d = (b[c-1])
if d == "1":
    print("true")
else:
    print("false")


